package edu.ucla.wanda.db;

import java.io.IOException;

import com.google.gson.JsonElement;
import com.google.gson.JsonObject;

public class WandaSubject
{
	private String id, name, gender;
		
	public WandaSubject(JsonElement element) throws IOException {
		JsonObject object = element.getAsJsonObject();
		
		// required parameters
		name = object.getAsJsonPrimitive("Name").getAsString();
		id = object.getAsJsonPrimitive("Id").getAsString();
		gender = object.getAsJsonPrimitive("Gender").getAsString();
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @return the gender
	 */
	public String getGender() {
		return gender;
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}
}
